package com.onlineshop.helloworld.biz;

import java.util.Date;

import com.onlineshop.helloworld.bean.HelloWorld;
import com.onlineshop.helloworld.dao.IHelloWorldDAO;



public class TestHelloWorldBiz {
	
	private IHelloWorldDAO testDAO=null;
	public IHelloWorldDAO getTestDAO() {
		return testDAO;
	}
	public void setTestDAO(IHelloWorldDAO testDAO) {
		this.testDAO = testDAO;
	}
	public void add() throws Exception{
		HelloWorld test=new HelloWorld();
		test.setName("yuanmomo6");
		test.setBirthday(new Date());
		try {
			testDAO.add(test);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			throw e;
		}
	}
}
